package sk.stuba.fiit.pki.service.impl;

import java.math.BigInteger;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import sk.stuba.fiit.pki.dao.CrlDao;
import sk.stuba.fiit.pki.dao.SerialDao;
import sk.stuba.fiit.pki.service.SerialService;

@Service("serialService")
public class SerialServiceImpl implements SerialService{
	
	@Autowired()
	private SerialDao serialDao = null;

	public BigInteger allocateCRLSerialNumber() {
			return serialDao.allocateCRLSerialNumber();
	}

	public BigInteger allocateCertSerialNumber() {
		return serialDao.allocateCertSerialNumber();
	}

	public BigInteger allocateTimeStampSerialNumber() {
		return serialDao.allocateTimeStampSerialNumber();
	}
	
	public BigInteger allocateOcspSerialNumber(){
		return serialDao.allocateOcspSerialNumber();
	}

	public void dealocateSerialNumber() {
		serialDao.dealocateSerialNumber();
	}

	
}
